/**
 * 
 */
package org.yelongframework.model.support.mybatis.sql.fragment.attribute;

import java.util.Map;

import org.yelongframework.model.support.mybatis.sql.fragment.MybatisSqlFragment;
import org.yelongframework.model.support.mybatis.sql.fragment.MybatisSqlPlaceholderable;
import org.yelongframework.sql.fragment.attribute.AttributeSqlFragment;

/**
 * mybatis属性SQL片段
 * 
 * @since 1.0.0
 */
public interface MybatisAttributeSqlFragment
		extends AttributeSqlFragment, MybatisSqlFragment, MybatisSqlPlaceholderable {

	/**
	 * 添加属性<br/>
	 * 注意：如果attrName属性已存在，name将会替换掉之前的
	 * 
	 * @param attrName 属性名称
	 * @param value    值
	 * @param jdbcType jdbc类型。如：String : VARCHAR
	 */
	void addAttr(String attrName, Object value, String jdbcType);

	/**
	 * @return mybatis属性映射
	 */
	Map<String, MybatisAttributeSqlFragmentAttribute> getMybatisAttrMap();

}
